window: Directly find the cursor in the widget hierarchy
authorTimm Bäder <mail@baedert.org>
Wed, 16 Jan 2019 16:37:42 +0000 (17:37 +0100)
committerTimm Bäder <mail@baedert.org>
Wed, 16 Jan 2019 18:01:40 +0000 (19:01 +0100)
commit374e93ef9620ecf390733c437d40eb73470209c0
treeb9f5633b952d219e4ee1f660bf6a518d356d1581
parent83f8056992a56d98430c2142908951c1f6eabb34
window: Directly find the cursor in the widget hierarchy

Instead of recording the way up from the target widget to the grab
widget (or toplevel) and then walking that path upwards, just walk the
parent chain and look at the cursor.
gtk/gtkwindow.c